<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="net.zhnb.util.*"%>
<%@ page import="net.zhnb.bean.*"%>
<%@page import="java.util.*"%>
<%@page import="finaler.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>智慧车展</title>
<meta name="keywords" content="宁波智慧车展">
<meta name="description" content="智慧车展,让红包飞!">
<jsp:include page="/commonImport.jsp"/>
</head>

<% 
	PageList lotteryList =  (PageList) request.getAttribute("lotteryList"); 
%>

<body>
	<center>
		<div class="main" >
			<table width="500" bgcolor="#126a98">
				<tr>
					<td colspan="3">
						<img width="500" src="<%=Constants.URL %>/images/background.jpg"/>
					</td>
				</tr>
				<%
				for( int i=0;i<lotteryList.getList().size();i++){
					Map<String,Object> lottery = (HashMap<String,Object>) lotteryList.getList().get(i);
				%>
					<tr bgcolor="#FFFFFF" height="30" valign="top" align="center" onmouseover="this.style.backgroundColor='#cccccc';" onmouseout="this.style.backgroundColor='#ffffff';">
					    <td><font color="#000000" size="7"><b><%=lottery.get("mobile")%></b></font></td>
					    <td><font size="6"><%=lottery.get("result").equals(0)?"<font color=\"red\">没中奖</font>":"<font color=\"green\">中奖</font>"%></font></td>
					    <td><font size="6">
					    	<%if(lottery.get("shareflag").equals(0)){ %>
					    		<%if(lottery.get("result").equals(1)){ %>
					    			<a href="<%=Constants.URL %>/main/share?lotteryId=<%=lottery.get("id")%>""><font color="red">点击分享</font></a>
					    		<%}else{%>
					    			<font color="red">未分享</font>
					    		<%}%>
					    	<%}else{%>
					    		<font color="green">已分享</font>
					    	<%}%></font>
					    </td>
					</tr>
				<%}%>
				<%if(lotteryList.getList().size()==0){ %>
					<tr height="70%">
					    <td colspan="3" align="center"><font color="#ffffff" size="20">该手机暂无抽奖信息!</font></td>
					</tr>
				<%} %>
			</table>
		</div>
	<jsp:include page="buttonInclude.jsp"/>
	</center>
</body>
</html>